﻿
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ks
{
   
    public partial class 首页 : System.Web.UI.Page
    {
        
         protected void Page_Load(object sender, EventArgs e)
        {
           
            {
                Label3.Text =  "你的浏览时间";
            }
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
          
            string sql = "select* from 风云音乐榜 where 年份='" + TextBox1.Text + "' and 歌手='" + TextBox2.Text + "'";


            //查询数据
            DataTable table = 桥梁.ExecuteDataTable(sql);
            this.GridView1.DataSourceID = null;
            GridView1.DataSource = table;
            GridView1.DataBind();
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Write("<script>window.location.href='/个人信息.aspx'</script>");
        }

        protected void Button2_Click1(object sender, EventArgs e)
        {

            Session["name"] = (int)Session["name"] + 1;
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Write("<script>window.location.href='/登录.aspx'</script>");
        }
    }
}